<% %>
<span class=label>
<%=@atype.name%>
</span>
<span class='edit_item' id="edit_item_<%=@atype.id%>">
<%if @atype.projects.empty? %>
<%=link_to_remote image_tag("trash.gif",:border=>0),
				  :confirm=>'Are you sure?'.t,
				  :loading=>"Element.show('indicator_#{@atype.id}');Element.hide('edit_item_#{@atype.id}')",
				  :complete =>"Element.hide('indicator')",
                  :url=>{:controller=>'activity_type',:action=>'destroy',:id=>@atype.id}
%>
<%end%>
<%=link_to_remote "Edit".t,
				  :update=>'activity_item_' + @atype.id.to_s,
				  :loading=>"Element.show('indicator_#{@atype.id}');Element.hide('edit_item_#{@atype.id}')",
				  :complete =>"Element.hide('indicator')",
                  :url=>{:controller=>'activity_type',:action=>'edit',:id=>@atype.id}
%>
</span>
<%=indicator(@atype.id)%>
